<template>
<div>
  <tabbar ref="mytabbar" v-show="$store.state.isTabbarShow"></tabbar>
  <section>
  <router-view></router-view>
  </section>
</div>
</template>
<script>
//@ 别名 ===> src的绝对路径
import Vue from 'vue'
import Vant from 'vant'
import 'vant/lib/index.css'
import tabbar from '@/components/Tabbar'
import axios from 'axios'
Vue.use(Vant)
export default {
  data () {
    return {
    }
  },
  mounted (){
    console.log(this.$refs.mytabbar.$el.offsetHeight);
  },
  components:{
    tabbar
  },
  methods: {
  }
}
</script>
<style lang="scss">
*{
  padding: 0;
  margin: 0;
}
html,body{
  height: 100%;
}
ul li{
  list-style: none;
}
section{
  padding-bottom: 2.7222rem;
}

</style>
